#include <p16f1455.h>

const long N = 10000;

void func(int n, int m);

foo(int *p, char a)
{
    char *p1, *p2, *p3;
    int x, y;
    while ( ADIF == 0 );

    if ( *p ) a++;
    if ( a ) a--;
    if ( N ) a++;

    func(*p, a);
    x = y++;
    *p1 = *p2 + *p3;

    if ( a-- ) a++;
}